# coding=utf-8
import datetime
from django.utils.dateparse import parse_date

s = '2014-09-02'
t = parse_date(s)
# tt = t.strftime('%Y%M%D')
print t
print t.year